package com.tsd.core.openweixin.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.tsd.core.utils.HlpUtils;

import java.io.Serializable;

/**
 * 获取模板返回的消息
 *
 * @author mayun
 */
public class WechatMessageResult4Template implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 717806721560532034L;
    @Expose
    @SerializedName("errcode")
    private String errcode;
    @Expose
    @SerializedName("errmsg")
    private String errmsg;
    private String template_id;

    public boolean isSuccess() {
        return !HlpUtils.isEmpty(this.getTemplate_id());
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }


}
